﻿
@using DemoTools.BLL.DemoNorthwind
@model AzOrders
@{
   ViewBag.Title = "编辑订单";
 }

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<h2>编辑订单</h2>
@using (Html.BeginForm("Edit", "AzOrders")) {
  @Html.ValidationSummary(true)
   <fieldset>
    <legend>编辑订单</legend>
            	@Html.HiddenFor(model => model.OrderID)
	        <div class="display-label">
           OrderID_simpCN
        </div>
        <div class="display-field">
           @Html.DisplayFor(model => model.OrderID)
        </div>
         
	        <div class="editor-label">
           CustomerID_simpCN
        </div>
        <div class="editor-field">
           @Html.EditorFor(model => model.CustomerID)
	   @Html.ValidationMessageFor(model => model.CustomerID)
        </div>
	        <div class="editor-label">
           EmployeeID_simpCN
        </div>
        <div class="editor-field">
           @Html.EditorFor(model => model.EmployeeID)
	   @Html.ValidationMessageFor(model => model.EmployeeID)
        </div>
	        <div class="editor-label">
           OrderDate_simpCN
        </div>
        <div class="editor-field">
           @Html.EditorFor(model => model.OrderDate)
	   @Html.ValidationMessageFor(model => model.OrderDate)
        </div>
	        <div class="editor-label">
           RequiredDate_simpCN
        </div>
        <div class="editor-field">
           @Html.EditorFor(model => model.RequiredDate)
	   @Html.ValidationMessageFor(model => model.RequiredDate)
        </div>
	        <div class="editor-label">
           ShippedDate_simpCN
        </div>
        <div class="editor-field">
           @Html.EditorFor(model => model.ShippedDate)
	   @Html.ValidationMessageFor(model => model.ShippedDate)
        </div>
	        <div class="editor-label">
           ShipVia_simpCN
        </div>
        <div class="editor-field">
           @Html.EditorFor(model => model.ShipVia)
	   @Html.ValidationMessageFor(model => model.ShipVia)
        </div>
	        <div class="editor-label">
           Freight_simpCN
        </div>
        <div class="editor-field">
           @Html.EditorFor(model => model.Freight)
	   @Html.ValidationMessageFor(model => model.Freight)
        </div>
	        <div class="editor-label">
           ShipName_simpCN
        </div>
        <div class="editor-field">
           @Html.EditorFor(model => model.ShipName)
	   @Html.ValidationMessageFor(model => model.ShipName)
        </div>
	        <div class="editor-label">
           ShipAddress_simpCN
        </div>
        <div class="editor-field">
           @Html.EditorFor(model => model.ShipAddress)
	   @Html.ValidationMessageFor(model => model.ShipAddress)
        </div>
	        <div class="editor-label">
           ShipCity_simpCN
        </div>
        <div class="editor-field">
           @Html.EditorFor(model => model.ShipCity)
	   @Html.ValidationMessageFor(model => model.ShipCity)
        </div>
	        <div class="editor-label">
           ShipRegion_simpCN
        </div>
        <div class="editor-field">
           @Html.EditorFor(model => model.ShipRegion)
	   @Html.ValidationMessageFor(model => model.ShipRegion)
        </div>
	        <div class="editor-label">
           ShipPostalCode_simpCN
        </div>
        <div class="editor-field">
           @Html.EditorFor(model => model.ShipPostalCode)
	   @Html.ValidationMessageFor(model => model.ShipPostalCode)
        </div>
	        <div class="editor-label">
           ShipCountry_simpCN
        </div>
        <div class="editor-field">
           @Html.EditorFor(model => model.ShipCountry)
	   @Html.ValidationMessageFor(model => model.ShipCountry)
        </div>

     <button type="submit">编辑</button>  
    </fieldset>
 }
 @Html.ActionLink("返回列表", "Index") 

